<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head>
    <div data-th-replace="layout/head"></div>
</head>
<body>
    <header class="bar bar-nav">
        <a th:href="@{/mobile/uc/cash/findUserCashAccount}" class="button button-link button-nav pull-left goBack">
            <span class="iconfont icon-fanhui"></span>
        </a>
        <h1 class='title'>微信账号绑定</h1>
    </header>
    <div class="content wm-content of order-content" style="background-color: #F6F6F6">
        <article class="page-infinite__wrap exam-page__wrap">
            <div class="page-group">
                <div class="pr pt5 pb5" style="margin-top: 260px;">
                    <!--成功图标-->
                    <aside th:if="${success}==true" class="exam-stop-icon applyWithdraw-icon"><span>&nbsp;</span></aside>
                    <!--失败图标-->
                    <aside th:if="${success}==false" class="exam-stop-icon checkInfo-icon"><span>&nbsp;</span></aside>
                    <section class="text-center">
                        <h3 class="" style="margin-bottom: 0;font-weight: 200;">绑定成功</h3>
                        <section class="pt5">
                            <span class="fs6 c-888" th:text="${message}"></span>
                        </section>
                        <section class="pt5">
                            <span class="fs6 c-888"><strong class="c-red fs8" id="time-box">5</strong>&nbsp;秒后自动跳转回绑定账号管理页面...</span>
                        </section>
                    </section>
                </div>
            </div>
        </article>
    </div>
    <!--绑定支付宝 表单 结束-->
    <div data-th-replace="layout/footer"></div>
    <script>
        $(function () {
            var timeNum = 5;
            var inter = setInterval(function () {
                $("#time-box").text(timeNum);
                if(timeNum <=0){
                    if(inter!=null){
                        window.clearInterval(inter);
                        window.location.href = baseloaction + '/mobile/uc/cash/findUserCashAccount';
                    }
                }
                timeNum --;
            },1000);
        });
    </script>
</body>
</html>
